<div class="widget-userinfo">
    <div class="text-center">
        <img src="__APP__/{:toTalentPhoto($userinfo['photo'], $userinfo['utype'])}" width="136" height="136" class="avatar-round"/>
    </div>
    <div class="text-center">
        <strong>{$userinfo['nickname']}</strong>
    </div>
    <div class="text-center widget-userinfo-line">
        <eq name="account.passcheck" value="0">
            <span class="mainicon"><i class="check"></i>未通过审核</span>
            <br />
            <a href="javascript:void(0);" class="blameCheck ghbutton">催促审核</a>
        <else />
        <span class="active mainicon"><i class="check"></i>已通过审核</span>
        </eq>
    </div>
    <script>
        require(["jquery","modules/message"], function ($,messageBox) {
            $(".widget-userinfo .blameCheck").click(function () {
                $.post("{:U('User/blamecheck_ajax')}", {}, function (data) {
                    var vdata = eval(data);
                    if (vdata.success == 1) {
                        messageBox.alert({ content: '已催促管理员' });
                    }
                    else {
                        messageBox.alert({ content: vdata.msg });
                    }
                    return false;
                }, 'json');
            });
        });
    </script>
    <div class="text-center widget-userinfo-line"><if condition="$userinfo['utype'] eq 1"><i class="fa fa-male">&nbsp;个人用户</i><else/><i class="fa fa-archive">&nbsp;企业用户</i></if></div>
    <div class="text-center widget-userinfo-line">
        <notempty name="menufounder">创始人<else /><notempty name="menujob">{$menujob.tname}:{$menujob.jname}</notempty></notempty>
    </div>
</div>
<div class="panel panel-menu">
    <div class="panel-heading">
        <i class="fa fa-caret-right pull-right"></i>类别
    </div>
    <div class="panel-body">
        <ul>
            <li <if condition="($znav eq 1)"> class="current" </if>><a href="{:U('User/info')}"> <i class="fa fa-angle-right"></i> 基本信息</a></li>
        <if condition="$userinfo.utype eq 1">
            <li <if condition="($znav eq 2)"> class="current" </if>><a href="{:U('User/userdetails')}"> <i class="fa fa-angle-right"></i> 履历信息</a></li>
            <li <if condition="($znav eq 3)"> class="current" </if>><a href="{:U('User/works')}"> <i class="fa fa-angle-right"></i> 作品展示</a></li>
        </if>
            <li <if condition="($znav eq 4)"> class="current" </if>><a href="{:U('User/account')}"> <i class="fa fa-angle-right"></i> 账户安全</a></li>
        <if condition="($userinfo.utype eq 1) and ($userinfo.projectname eq null)">
            <li><a href="{:U('/projects')}"> <i class="fa fa-angle-right"></i> 加入团队</a></li>
        </if>
            <li <if condition="($znav eq 6)"> class="current" </if>><a href="{:U('User/comments')}"> <i class="fa fa-angle-right"></i> 信誉评价</a></li>
        </ul>
    </div>
</div>